<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:form>
<p:menubar autoSubmenuDisplay="true">
	<p:menuitem value="#{appLabels.menubar_home}" action="/" icon="homeIcon" />
	<p:submenu label="#{appLabels.menubar_sales}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_1')}">
		<p:menuitem value="#{appLabels.menubar_invoices}" action="#" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_1.1')}"/>
		<p:menuitem value="#{appLabels.menubar_mirror}" action="#" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_1.2')}"/>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_entries}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2')}">
		<p:menuitem value="#{appLabels.menubar_customers}" action="#{contaMB.carregarCRUD('CL')}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2.1')}"/>
		<p:menuitem value="#{appLabels.menubar_prospects}" action="#{contaMB.carregarCRUD('PO')}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2.2')}"/>
		<p:menuitem value="#{appLabels.menubar_competitors}" action="#{contaMB.carregarCRUD('CO')}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2.3')}"/>
		<p:menuitem value="#{appLabels.menubar_partners}" action="#{contaMB.carregarCRUD('PA')}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2.4')}"/>
		<p:menuitem value="#{appLabels.menubar_suppliers}" action="#{contaMB.carregarCRUD('FO')}" icon="suppliersIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2.5')}"/>
		<p:menuitem value="#{appLabels.menubar_contacts}" action="#" icon="contactIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_2.6')}"/>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_rh}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_3')}">
		<p:menuitem value="#{appLabels.menubar_companies}" action="#{empresaMB.carregarCRUD}" icon="businessIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_3.1')}"/>
		<p:menuitem value="#{appLabels.menubar_employees}" action="#{funcionarioMB.carregarCRUD}" icon="employeesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_3.2')}"/>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_finances}" icon="financeIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_4')}">
		<p:menuitem value="#{appLabels.menubar_launch_of_accounts}" action="#{contaFinanceiroMB.carregarFormInclusao}" icon="launchAccountIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_4.1')}"/>
		<p:menuitem value="#{appLabels.menubar_accounts_payable}" action="#{contaFinanceiroMB.carregarCRUD}" icon="financeDelIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_4.2')}"/>
		<p:menuitem value="#{appLabels.menubar_accounts_receivable}" action="#" icon="financeAddIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_4.3')}"/>
		<p:menuitem value="#{appLabels.menubar_transfres}" action="#" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_4.4')}"/>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_telemarketing}" icon="telemarketingIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_5')}">
		<p:menuitem value="#{appLabels.menubar_activities}" action="#" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_5.1')}"/>
		<p:menuitem value="#{appLabels.menubar_campaigns}" action="#{campanhaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_5.2')}"/>
		<p:menuitem value="#{appLabels.menubar_opportunities}" action="#{oportunidadeMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_5.3')}"/>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_reports}" icon="reportIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_6')}">
		<p:submenu label="#{appLabels.menubar_finances}" icon="financeReportIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_6.1')}">
			<p:menuitem value="#{appLabels.menubar_accounts_payable}" action="#" icon="financeDelIcon"  rendered="#{TSF_USER_ACCESS.isPermitido('OPR_6.1.1')}"/>
			<p:menuitem value="#{appLabels.menubar_accounts_receivable}" action="#" icon="financeAddIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_6.1.2')}"/>
		</p:submenu>
		<p:menuitem value="#{appLabels.menubar_payroll}" action="#" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_6.2')}"/>
		<p:menuitem value="#{appLabels.menubar_bank_statement}" action="#" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_6.3')}"/>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_settings}" icon="settingIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7')}">
		<p:submenu label="#{appLabels.menubar_rh}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1')}">
			<p:menuitem value="#{appLabels.menubar_blood_types}" action="#{tipoSanguineoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1.2')}"/>
			<p:menuitem value="#{appLabels.menubar_types_of_absences}" action="#{tipoAusenciaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1.3')}"/>
			<p:menuitem value="#{appLabels.menubar_classes}" action="#{classeMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1.4')}"/>
			<p:menuitem value="#{appLabels.menubar_category_of_employees}" action="#{categoriaFuncionarioMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1.5')}"/>
			<p:menuitem value="#{appLabels.menubar_positions_of_employees}" action="#{posicaoFuncionarioMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1.6')}"/>
			<p:menuitem value="#{appLabels.menubar_category_of_payroll}" action="#{categoriaFolhaPagamentoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.1.7')}"/>
		</p:submenu>
		<p:submenu label="#{appLabels.menubar_finances}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2')}">
			<p:menuitem value="#{appLabels.menubar_banks}" action="#{bancoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.1')}"/>
			<p:menuitem value="#{appLabels.menubar_natures}" action="#{naturezaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.2')}"/>
			<p:menuitem value="#{appLabels.menubar_cost_centers}" action="#{centroCustoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.3')}"/>
			<p:menuitem value="#{appLabels.menubar_operations}" action="#{operacaoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.4')}"/>
			<p:menuitem value="#{appLabels.menubar_expenses}" action="#{despesaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.5')}"/>
			<p:menuitem value="#{appLabels.menubar_forms_of_payments}" action="#{formaPagamentoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.6')}"/>
			<p:menuitem value="#{appLabels.menubar_carriers}" action="#{portadorMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.2.7')}"/>
		</p:submenu>
		<p:submenu label="#{appLabels.menubar_general}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3')}">
			<p:menuitem value="#{appLabels.menubar_branches_of_activity}" action="#{setorMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.1')}"/>
			<p:menuitem value="#{appLabels.menubar_origins_of_opportunities}" action="#{origemOportunidadeMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.2')}"/>
			<p:menuitem value="#{appLabels.menubar_types_of_opportunities}" action="#{tipoOportunidadeMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.3')}"/>
			<p:menuitem value="#{appLabels.menubar_phases_of_opportunities}" action="#{faseOportunidadeMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.4')}"/>
			<p:menuitem value="#{appLabels.menubar_types_of_campaigns}" action="#{tipoCampanhaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.5')}"/>
			<p:menuitem value="#{appLabels.menubar_status_of_campaigns}" action="#{statusCampanhaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.6')}"/>
			<p:menuitem value="#{appLabels.menubar_roles_of_contacts}" action="#{papelContatoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.7')}"/>
			<p:menuitem value="#{appLabels.menubar_classifications_of_accounts}" action="#{classificacaoContaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.3.8')}"/>
		</p:submenu>
		<p:submenu label="#{appLabels.menubar_services}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4')}">
			<p:menuitem value="#{appLabels.menubar_brands_of_devices}" action="#{marcaAparelhoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4.1')}"/>
			<p:menuitem value="#{appLabels.menubar_types_of_devices}" action="#{tipoAparelhoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4.2')}"/>
			<p:menuitem value="#{appLabels.menubar_types_of_plans}" action="#{tipoPlanoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4.3')}"/>
			<p:menuitem value="#{appLabels.menubar_services}" action="#{servicoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4.4')}"/>
			<p:menuitem value="#{appLabels.menubar_devices}" action="#{aparelhoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4.5')}"/>
			<p:menuitem value="#{appLabels.menubar_plans}" action="#{planoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.4.6')}"/>
		</p:submenu>
		<p:submenu label="#{appLabels.menubar_sales}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.5')}">
			<p:menuitem value="#{appLabels.menubar_status_of_sales}" action="#{statusVendaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.5.1')}"/>
			<p:menuitem value="#{appLabels.menubar_types_of_sales}" action="#{tipoVendaMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.5.2')}"/>
		</p:submenu>
		<p:submenu label="#{appLabels.menubar_mirror}" icon="entriesIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.6')}">
			<p:menuitem value="#{appLabels.menubar_types_of_committees}" action="#{tipoComissaoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.6.1')}"/>
			<p:menuitem value="#{appLabels.menubar_descriptions_of_mirror}" action="#{descricaoEspelhoMB.carregarCRUD}" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_7.6.2')}"/>
		</p:submenu>
	</p:submenu>
	<p:submenu label="#{appLabels.menubar_secutiry}" icon="securityIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_8')}">
		<p:menuitem value="#{appLabels.menubar_users}" action="#{usuarioMB.carregarCRUD}" icon="groupIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_8.1')}"/>
		<p:menuitem value="#{appLabels.menubar_groups}" action="#" icon="groupIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_xxx')}"/>
		<p:menuitem value="#{appLabels.menubar_menus}" action="#" icon="menuIcon" rendered="#{TSF_USER_ACCESS.isPermitido('OPR_xxx')}"/>
	</p:submenu>
	<p:menuitem value="#{appLabels.menubar_exit}" action="#{loginMB.logout}" icon="exitIcon" />
</p:menubar>
</h:form>
</html>